package com.smz.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.smz.dao.TPostDAO;
import com.smz.entity.TPost;
import com.smz.service.TPostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TPostServiceImpl extends ServiceImpl<TPostDAO, TPost> implements TPostService {

    @Autowired
    private TPostDAO tPostDAO;


    @Override
    public List<TPost> findAllTPostById(Integer id) {
        return tPostDAO.selectAllTPostsById(id);
    }

    @Override
    public TPost findTPostById(Integer id) {
        return tPostDAO.selectTPostById(id);
    }
}
